let isProduction = process.env.NODE_ENV === "production"
const baseUrl = "http://127.0.0.1:9094"
const socketUrl = "ws://127.0.0.1:9094"
const fileUrl = "http://127.0.0.1:9094"
// 登录页二维码屏蔽
const apiSuffix = "/firecontrol"
const baseApi = `${baseUrl}${apiSuffix}`

import mapStyle from "./mapStyle.js"
export default {
    socketUrl,
    baseUrl,
    baseApi,
    fileUrl,
    uploadUrl: baseApi + "/uploads",
    uploadsPicture: baseApi + "/uploadsPicture",
    mapStyle: mapStyle,
    pageSize: 10,
    typeMap: {
        fire: "1",
        pool: "2",
        smoke: "3",
        gas: "4",
        auto: "5",
        monitor: "6",
        eye: "6",
        extinguisher: "7",
        waterPump: "10",
        gasStation: "11",
        ladderControl: "12",
        waters: "13",
        health: "14", //公共卫生
        video: "15", //可视视频
        kitchen: "16", //明厨亮灶
        general: "17", //综合治理可视化
        meterReading: "18", //综合治理可视化
        switcher: "19", //开关量监测
        fireControl: "100",
        warehouse: "20",
        chargingStation:'22'
    },
    defaultTitleList: [
        { deviceClassify: "0", titleText: "公共环境安全监管云平台" },
        { deviceClassify: "100", titleText: "公共环境安全监管云平台" },
        { deviceClassify: "1", titleText: "电气火灾监测系统" },
        { deviceClassify: "2", titleText: "建筑消防用水监测系统" },
        { deviceClassify: "3", titleText: "独立烟感报警监测系统" },
        { deviceClassify: "4", titleText: "可燃气体监测系统" },
        { deviceClassify: "5", titleText: "自动联网报警" },
        { deviceClassify: "6", titleText: "可视化报警监测系统" },
        { deviceClassify: "7", titleText: "智能灭火器监测系统" },
        { deviceClassify: "10", titleText: "水泵检测系统" },
    ],
    videoTypeMap: {
        "01": "rtmp",
        "02": "application/x-mpegURL", //hls
        "03": "video/x-flv", //http-flv
        "04": "video/x-flv", //ws-flv
        "05": "mjpeg",
        "06": "video/rtsp", //rtsp
    },
}
